package cn.yangliu.nacos.oauth2.enums;

import cn.yangliu.nacos.comm.ex.ResultCode;

/**
 * The type of nacos.
 *
 * @author 问道于盲
 * @date 2020 -01-01
 */
public enum Oauth2ResultCode implements ResultCode {

    ;
    /**
     * current class instance's member.
     * The Code.
     */
    private int code;

    /**
     * current class instance's member.
     * The Msg.
     */
    private String msg;

    /**
     * Instantiates a new Global result code.
     *
     * @param code the code
     * @param msg  the msg
     */
    Oauth2ResultCode(int code, String msg) {
        this.code = code;
        this.msg = msg;
    }

    /**
     * current class method for getter.
     * Gets code.
     *
     * @return the code
     */
    @Override
    public int getCode() {
        return code;
    }

    /**
     * current class method for getter.
     * Gets msg.
     *
     * @return the msg
     */
    @Override
    public String getMsg() {
        return msg;
    }
}
